<%@page contentType="text/html; charset=utf-8"%>
<%@taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<form id="pagerForm" method="post" action="empList">	
	<input type="hidden" name="pageNum" value="${param.pageNum}" />	
</form>
<div class="pageHeader">
	<form onsubmit="return navTabSearch(this);" rel="pagerForm"  method="post" action="empList">
	<div class="searchBar" >
	<input type="hidden" name="numPerPage" value="${numPerPage}" />
	<input type="hidden" name="pageNum" value="${pageNum}" /> 
	<table class="searchContent" >
			<tr>
				<td>
					 <label>姓名：</label> 
                     <input type="text" class="txtinput" name="realName" value="${param.realName}"/>
				</td>
				
				<td style="">
					 <div class="subBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div></li>
			</ul>
		</div>
				</td>
			</tr>
		</table>
		
	</div>
	</form>
</div>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li>
				<a class="add" width="460" height="310" style="font-weight: bold;color:#4BBB13;" href="addCompany?navTabId=addCompany" target="dialog" maxable="false" mask="true">
					<span>新增买方</span>
				</a>
			</li>
			<li class="line">line</li>
			<li>
				<a class="edit" width="460" height="310"  style="font-weight: bold;color:#6495ED;" href="editCompany?companyId={sid_companyId}&navTabId=editaddCompany"
					 target="dialog" maxable="false" mask="true" rel="editCompany" title="编辑买方信息"><span>编 辑</span>
				</a>
			</li>
			<li class="line">line</li>
			<li>
				<a class="delete" style="font-weight: bold;color:#C1272A;" href="deladdCompany?companyId={sid_companyId}"
					target="ajaxTodo" title="确定要删除您所选中的买方信息吗?"><span>删 除</span>
				</a>
			</li>
		</ul>
	</div>
	<table class="table" width="100%" layoutH="115">
		<thead>
			<tr>
				<th width="20">序号</th>
                <th width="35">买方ID</th>
                <th width="65">买方名称</th>
                <th width="50">联系人</th>
                <th width="45">电话</th>
                <th width="40">传真</th>
                <th width="40">邮编</th>
                <th width="95">地址</th>               
			</tr>
		</thead>
		<tbody>
		   <c:forEach var="employee" items="${employeeList}" varStatus="status">
	 		<tr target="sid_empId" rel="${employee.employeeId}">
                        <td>${status.count} /${employee.employeeId}</td>
                        <td>${employee.nickName}</td>
                      <td>${employee.realName}</td>
                         <td>${employee.sex==0?'男':'女'} </td>
                        <td>${employee.hireDate.toString().substring(0,19)}</td>
                      <td>${employee.phone}</td>
                        <td>${employee.email}</td>
                      <td>${employee.status==1?"<a style='text-decoration: none;color:green;'>正常</a>":"<a style='text-decoration: none;color:red;'>冻结</a>"}</td>                    
                      </tr>
                </c:forEach>   
                <tr target="sid_companyId" rel="65655">
                	<td>1</td>
                	<td>10068</td>
                	<td>深圳易道现代物流有限公司</td>
                	<td>张三</td>
                	<td>0755-8382 9166</td>
                	<td>0755-8382 9166</td>
                	<td>58100</td>
                	<td>深圳市福田区车公庙绿景纪元大厦A栋23B</td>
                </tr>
		</tbody>
	</table>

	<div class="panelBar">
		<div class="pages">
			<span>显示</span>
			<!-- pageNum:1是当更改numPerPage时，使pageNum=1重新开始，否则可能无数据 -->
			<select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value,pageNum:1})">
				<option value="15" ${numPerPage==15?'selected':''}>15</option>
				<option value="20" ${numPerPage==20?'selected':''}>20</option>
				<option value="25" ${numPerPage==25?'selected':''}>25</option>
				<option value="50" ${numPerPage==50?'selected':''}>50</option>
				<option value="100" ${numPerPage==100?'selected':''}>100</option>
			</select>
			<span>条，共100条 </span>
		</div>		
		<div class="pagination" targetType="navTab" totalCount="100" numPerPage="${numPerPage}" pageNumShown="5" currentPage="<%=1%>"></div>

	</div>
</div>
